package com.java.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/***
 * 进货订单
 */
public class EnterGood {
    private Integer eid;
    private String document;//编号
    private Integer goodStyle;//商品类型
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date data1;//时间
    private Integer okandno;//处理状态,是否入库(
    private String boss;//审核人
    private Integer forname;//供应商名称
    private Integer rid;//入库的仓库名称
    private Integer stores;//门店
    private String goodname;//商品名称
    private Integer num;//商品个数
    private Double money;//总金额

    /*一对多*/
    private List<EnterGoods> goodsList;

    @Override
    public String toString() {
        return "EnterGood{" +
                "eid=" + eid +
                ", document='" + document + '\'' +
                ", goodStyle=" + goodStyle +
                ", data1=" + data1 +
                ", okandno=" + okandno +
                ", boss='" + boss + '\'' +
                ", forname=" + forname +
                ", rid=" + rid +
                ", stores=" + stores +
                ", goodname='" + goodname + '\'' +
                ", num=" + num +
                ", money=" + money +
                ", goodsList=" + goodsList +
                '}';
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getDocument() {
        return document;
    }

    public void setDocument(String document) {
        this.document = document;
    }

    public Integer getGoodStyle() {
        return goodStyle;
    }

    public void setGoodStyle(Integer goodStyle) {
        this.goodStyle = goodStyle;
    }

    public Date getData1() {
        return data1;
    }

    public void setData1(Date data1) {
        this.data1 = data1;
    }

    public Integer getOkandno() {
        return okandno;
    }

    public void setOkandno(Integer okandno) {
        this.okandno = okandno;
    }

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public Integer getForname() {
        return forname;
    }

    public void setForname(Integer forname) {
        this.forname = forname;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getStores() {
        return stores;
    }

    public void setStores(Integer stores) {
        this.stores = stores;
    }

    public String getGoodname() {
        return goodname;
    }

    public void setGoodname(String goodname) {
        this.goodname = goodname;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public List<EnterGoods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<EnterGoods> goodsList) {
        this.goodsList = goodsList;
    }
}
